import http from '@/service';

// 订单统计
export function getOrderNumberInfo() {
	return http.request({
		url: '/api/userInfo/orderCount',
		method: 'get'
	});
}

// 我的账户总览
export function myAccount(params) {
	return http.request({
		url: '/api/tdAccount/overview',
		method: 'get',
		params
	});
}
// 我的收益页面信息
export function incomeData() {
	return http.request({
		url: '/api/tdAccount/recently',
		method: 'get'
	});
}
//获取勋章
export function getMyMedal() {
	return http.request({
		url: '/api/userInfo/getUserTag',
		method: 'get'
	});
}
//使用邀请码
export function useCode(params) {
	return http.request({
		url: '/api/userInfo/dealInvitationCode',
		method: 'get',
		params
	});
}
// 收益明细
export function getIncomeDetails(params) {
	return http.request({
		url: '/api/tdAccount/income/detail',
		method: 'get',
		params
	});
}
//推出登陆
export function serverLogout() {
	return http.request({
		url: '/api/login/logout',
		method: 'post'
	});
}
